{% macro header(isback,title,tools,more) -%}
    <header class="common-header">
        {% if isback == true %}
            <div class="left">
                <div class="weui-icon-back"></div>
            </div>
        {% elif isback == false %}
            <div class="left notools">
            </div>
        {% else %}
            <div class="left">
                {{ isback|safe }}
            </div>
        {% endif %}

        <div class="title ellipsis">{{ title }}</div>
        <div class="{{ 'tools' if tools else 'notools' }}">
            {{ tools|safe }}
        </div>
        {% if more %}
            <div class="more">
                {{ more|safe }}
            </div>
        {% endif %}
    </header>
{%- endmacro %}